<%@ Page Title="Send Email Notifications" Language="C#" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeFile="EmailNotification.aspx.cs" Inherits="admin_Create_Report" %>

<asp:Content ID="Head" ContentPlaceHolderID="head" runat="Server">
    <link href="../styles/admin.css" rel="stylesheet" type="text/css" />

    <script src="../javascripts/jquery-1.4.3.min.js" type="text/javascript"></script>

    <script src="../javascripts/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $(".datepicker").datepicker({ dateFormat: 'dd/mm/yy' });
        });  
    </script>

    <script type="text/javascript">
        function showSites(str) {
            if (str == "") {
                document.getElementById("txtHint").innerHTML = "";
                return;
            }
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange = function() {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    document.getElementById("client_id").innerHTML = str;
                }
            }
            SitesObjectDataSource.SelectParameters["client_id"].DefaultValue = str;
            xmlhttp.open("GET", "Create_Repport.aspx?client_id=" + str, true);
            xmlhttp.send();
        }
    </script>

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
     <div id="top_menu">
        <div id="help_button">
            help
        </div>
                  <div id="logout">
            <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="../Default.aspx"
                OnLoggingOut="LoginStatus1_LoggingOut" />
        </div>
    </div>
    <div id="page_title">
        ADMINISTRATION
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div id="left_content">
        <div class="menu">
            <ul>
                <li><a href="Home.aspx">Home</a></li>
                <li><a href="Mng_Client.aspx">Manage Clients</a></li>
                <li><a href="Mng_Site.aspx">Manage Sites</a></li>
                <li><a href="Mng_Machine.aspx">Manage Machines</a></li>
                <li><a href="Mng_Comp.aspx">Manage Components</a></li>
                <li><a href="#" class="current">Send Email Notification</a></li>
                <li><a href="Mng_WO.aspx">Manage Work Order</a></li>
            </ul>
        </div>
    </div>
    <!-- end of left content -->
    <div id="right_content">
        <div class="content_area">
            <h2>
                Send Notification
            </h2>
            <h3>
                <asp:Label ID="componentNameLabel" runat="server" Text="Specify Receivers" Visible="False"></asp:Label>
            </h3>
            <div class="form_box1">
                <table>
                    <tr>
                        <td class="label">
                            Client:
                        </td>
                        <td class="label">
                            <asp:Label ID="clientname_lb" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Select Receivers:
                        </td>
                        <td>
                            <asp:DropDownList ID="EmailRceivers_Dropdownlist" runat="server" CssClass="dropDownList1">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td class="Li_buttonC">
                            <asp:LinkButton ID="submit_button" runat="server" Text="SendNotification" OnClick="submit_button_Click" />
                        </td>
                    </tr>
                    <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="Li_buttonC">
                            <a id="NewVAlink" runat="server" href="Create_Report.aspx" target="_self" >Create New
                                VA Report</a>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
